SRC_FILES = $(wildcard *.c)
TARGETS := $(subst .c,,$(SRC_FILES))




echo_storeserv: echo_storeserv.c
	cc $< -o $@
pipe3: pipe3.c
	cc $< -o $@
pipe2: pipe2.c
	cc $< -o $@
pipe1: pipe1.c
	cc $< -o $@
echo_mpclient: echo_mpclient.c
	cc $< -o $@
echo_mpserv: echo_mpserv.c
	cc $< -o $@
remove_zombie: remove_zombie.c
	cc $< -o $@
sigaction: sigaction.c
	cc $< -o $@
signal: signal.c
	cc $< -o $@
waitpid: waitpid.c
	cc $< -o $@
wait: wait.c
	cc $< -o $@
zombie: zombie.c
	cc $< -o $@
fork: fork.c
	cc $< -o $@
set_buf: set_buf.c
	cc $< -o $@
get_buf: get_buf.c
	cc $< -o $@
sock_type: sock_type.c
	cc $< -o $@
all: ${TARGETS}

clean: 
	rm ${TARGETS}
.PHONY: clean
